<?php if (!defined('THINK_PATH')) exit();?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>

<link href="/phpkt/20170315/tpbbs/Public/css/index.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/phpkt/20170315/tpbbs/Public/js/jquery.min.js"></script>
<style type="text/css">
    #right{
        margin-right: 420px;
    }
</style>

</head>

<body>
<div id="top">
		<h1>编辑留言</h1>
</div>

<div id="mian_out">
	  
   
   <div id="right">
			<h2>留下你的脚步吧</h2>
			<form action="/phpkt/20170315/tpbbs/index.php/Home/Index/update/id/<?php echo ($row["id"]); ?>" method="post">
				<p class="one">
                                    昵称:<input class="name" name="username" type="text" placeholder="" value="<?php echo ($row['username']); ?>" />
				<input type="radio" name="sex" value="男" 
                                       <?php if(($row["sex"]) == "男"): ?>checked="checked"<?php endif; ?>
                                       />男侠
				<input type="radio" name="sex" value="女"
                                        <?php if(($row["sex"]) == "女"): ?>checked="checked"<?php endif; ?>
                                       />女侠
				</p>
				<p><textarea name="message" placeholder="" ><?php echo ($row['message']); ?></textarea></p>
				<p class="tow">
					<input type="radio" name="imgurl" value="images/1.jpg" <?php if(($row["imgurl"]) == "images/1.jpg"): ?>checked="checked"<?php endif; ?> /><img src="/phpkt/20170315/tpbbs/Public/images/1.jpg" alt="" />
					<input type="radio" name="imgurl" value="images/2.jpg" <?php if(($row["imgurl"]) == "images/2.jpg"): ?>checked="checked"<?php endif; ?> /><img src="/phpkt/20170315/tpbbs/Public/images/2.jpg" alt="" />
					<input type="radio" name="imgurl" value="images/3.jpg" <?php if(($row["imgurl"]) == "images/3.jpg"): ?>checked="checked"<?php endif; ?> /><img src="/phpkt/20170315/tpbbs/Public/images/3.jpg" alt="" />
					<input type="radio" name="imgurl" value="images/4.jpg" <?php if(($row["imgurl"]) == "images/4.jpg"): ?>checked="checked"<?php endif; ?> /><img src="/phpkt/20170315/tpbbs/Public/images/4.jpg" alt="" />
				</p>
				<p class="thr"><input class="btn" type="submit" value="提交" /></p>
			</form>
                        <div class="close" href="/phpkt/20170315/tpbbs/index.php/Home/Index/index"></div>
</div>
   
</div>

<div id="bottom_out">
		<div id="bottom">
			<form action="upadd.php" method="post">
				<p class="one">
				昵称:<input class="name" name="username" type="text" placeholder="大爷你的名字" />
				<br/><br/>
				<input type="radio" name="sex" value="男" checked="checked" />男侠
				<input type="radio" name="sex" value="女" />女侠
				</p>
				<p><textarea name="message" placeholder="这个人很懒,什么都没有写" ></textarea></p>
				<p class="tow">
					<input type="radio" name="imgurl" value="images/1.jpg" checked="checked" /><img src=" images/1.jpg" alt="" />
					<input type="radio" name="imgurl" value="images/2.jpg" /><img src=" images/2.jpg" alt="" />
					<input type="radio" name="imgurl" value="images/3.jpg" /><img src=" images/3.jpg" alt="" />
					<input type="radio" name="imgurl" value="images/4.jpg" /><img src=" images/4.jpg" alt="" />
				</p>
				<p class="thr"><input class="btn" type="submit" value="提交" /></p>
			</form>
			<div class="close"></div>
		</div>
</div>

</body>
</html>